package com.jilujia.domain.blog.event;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component
public class BlogEventsListener implements ApplicationListener<BlogPostEvent> {
	
	@Transactional
	public void onApplicationEvent(BlogPostEvent event) {
		// do something
	}
}
